package com.student.client.mapper;

import com.student.client.entity.Medicine;
import com.student.client.entity.Vaccines;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MedicineMapper {
    //查看药品信息
    @Select("select * from medicine_info")
    public List<Medicine> findAllMedicine();
    //添加药品信息
    @Insert("INSERT INTO medicine_info(medicine_name, number, medicine_date, context)" +
            "values(#{name},#{number},#{date},#{context})" )
    public int addMedicine(Medicine medicine);
}
